<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" href="http://www.petercorke.com/RVC/common/toolboxhelp.css">
    <title>M-File Help: anaglyph</title>
  </head>
  <body>
  <table border="0" cellspacing="0" width="100%">
    <tr class="subheader">
      <td class="headertitle">M-File Help: anaglyph</td>
      <td class="subheader-left"><a href="matlab:open anaglyph">View code for anaglyph</a></td>
    </tr>
  </table>
<h1>anaglyph</h1><p><span class="helptopic">Convert stereo images to an anaglyph image</span></p><strong>a</strong> = <span style="color:red>anaglyph</span>(<strong>left</strong>, <strong>right</strong>) is an <span style="color:red>anaglyph</span> image where the two images of
a stereo pair are combined into a single image by coding them in two
different colors.  By default the left image is red, and the right
image is cyan.

<strong>a</strong> = <span style="color:red>anaglyph</span>(<strong>left</strong>, <strong>right</strong>, <strong>color</strong>) as above but the string <strong>color</strong> describes
the color coding as a string with 2 letters, the first for left, the second
for right, and each is one of:

<table class="list">
  <tr><td style="white-space: nowrap;" class="col1"> 'r'</td> <td>red</td></tr>
  <tr><td style="white-space: nowrap;" class="col1"> 'g'</td> <td>green</td></tr>
  <tr><td style="white-space: nowrap;" class="col1"> 'b'</td> <td>green</td></tr>
  <tr><td style="white-space: nowrap;" class="col1"> 'c'</td> <td>cyan</td></tr>
  <tr><td style="white-space: nowrap;" class="col1"> 'm'</td> <td>magenta</td></tr>
</table>
<strong>a</strong> = <span style="color:red>anaglyph</span>(<strong>left</strong>, <strong>right</strong>, <strong>color</strong>, <strong>disp</strong>) as above but allows for disparity
correction.  If <strong>disp</strong> is positive the disparity is increased, if negative it
is reduced.  These adjustments are achieved by trimming the images.  Use
this option to make the images more natural/comfortable to view, useful
if the images were captured with a non-human stereo baseline or field of view.

<h2>See also</h2>
<p>
<a href="matlab:doc stdisp">stdisp</a></p>
<hr>

<table border="0" width="100%" cellpadding="0" cellspacing="0">
  <tr class="subheader" valign="top"><td>&nbsp;</td></tr></table>
<p class="copy">&copy; 1990-2011 Peter Corke.</p>
</body></html>